﻿using FactoryLib.abstracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FactoryLib.services.Factory
{
    /// <summary>
    /// 劳动节工厂
    /// </summary>
    public class MaydayGameProvider: IGameProvider
    {
        private IEnumerable<Ihero> _iheros;

        public MaydayGameProvider(IEnumerable<Ihero> iheroes)
        {
            Console.WriteLine("----------游戏开始-------------");
            _iheros = iheroes;
        }
        public void GameEnd()
        {
            Console.WriteLine("-------游戏结束---------");
        }

        public void GameStart()
        {
            this.LoadActivity();
            this.LoadTopic();
            this.LoadMusic();
            Thread.Sleep(1000);
            Console.WriteLine("----------欢迎来到王者荣耀-------------");
            Thread.Sleep(1000);
            Console.WriteLine("----------敌军还有三十秒到达战场，请做好准备-------------");
            Thread.Sleep(1000);
            Console.WriteLine("----------全军出击-------------");
            Thread.Sleep(1000);
        }

        public void LoadActivity()
        {
            Console.WriteLine("加载充值活动:劳动节多劳动，5折充值");
        }

        public void LoadMusic()
        {
            Console.WriteLine("加载游戏音乐：劳动节人名最光荣.mp3 正在播放中...");
        }

        public void LoadTopic()
        {
            Console.WriteLine("加载游戏主题：劳动节游戏主题，全新劳动节皮肤，买一送五");
        }
    }
}
